#include "BufferBlock.h"
#include <assert.h>


BufferBlock::BufferBlock(Block* block)
{
    _block = block;
    isPinned = false;
    isModified = false;
}

BufferBlock::~BufferBlock()
{
    delete _block;
    _block = NULL;
}

Block* BufferBlock::getBlock()
{
    assert(_block);
    return _block;
}